<template>
  <div class="wnode">{{ treeData.title }}</div>
</template>

<script lang="ts">
import { defineComponent, PropType } from "vue";
import { TreeData } from "./wtree/type";
export default defineComponent({
  name: "wnode",
  props: {
    treeData: {
      type: Object as PropType<TreeData>,
      required: true,
      default: () => {
        return {};
      },
    },
  },
  setup() {
    const a = "5464";
    return {
      a,
    };
  },
});
</script>

<style lang="less" scoped>
.wnode {
  color: red;
}
</style>
